import Vue from 'vue'
import Router from 'vue-router'
import UaaUserPage from '../page/uaa/user/UaaUserPage'
import UaaRolePage from '../page/uaa/role/UaaRolePage'
import UaaPrivPage from '../page/uaa/priv/UaaPrivPage'
import UaaLoginPage from '../page/uaa/user/UaaLoginPage'
import UaaMenuPage from '../page/uaa/menu/UaaMenuPage'
import MediaChatPage from '../page/media/chat/MediaChatPage'

import FilmFastPage from '../page/film/films/FilmFastPage'
import FilmPicPage from '../page/film/films/FilmPicPage'
import HomePage from '../page/home/HomePage'
import IndexPage from '../page/home/IndexPage'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/HomePage',
      name: 'HomePage',
      component: HomePage,
      children: [
        {
          path: '/UaaUserPage',
          name: 'UaaUserPage',
          component: UaaUserPage
        },
        {
          path: '/UaaRolePage',
          name: 'UaaRolePage',
          component: UaaRolePage
        },
        {
          path: '/UaaPrivPage',
          name: 'UaaPrivPage',
          component: UaaPrivPage
        },
        {
          path: '/UaaMenuPage',
          name: 'UaaMenuPage',
          component: UaaMenuPage
        },
        {
          path: '/FilmFastPage',
          name: 'FilmFastPage',
          component: FilmFastPage
        },
        {
          path: '/FilmPicPage',
          name: 'FilmPicPage',
          component: FilmPicPage
        },
        {
          path: '/MediaChatPage',
          name: 'MediaChatPage',
          component: MediaChatPage
        }
      ]
    },
    {
      path: '/UaaLoginPage',
      name: 'UaaLoginPage',
      component: UaaLoginPage
    },
    {
      path: '/IndexPage',
      name: 'IndexPage',
      component: IndexPage
    }

  ],
  linkActiveClass: 'myactive'
})
